<template>
 <div>
      <Upload action="http://localhost:5000/api/Common/Upfiles" multiple :headers="header" :data="module">
        <Button icon="ios-cloud-upload-outline">上传</Button>
    </Upload> 
    <h3 v-click-outside="onClickoutside">test</h3>
    <div>
        <ops :data="buttons" :num="2">
            hi
        </ops>
        <h3>111{{$options.__source }}2222</h3>
    </div>
 </div>
</template>

<script>
 export default {
   data () {
     return {
         header:{
             Authorization: "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJIZW5xIiwiaXNzIjoiaHR0cDovL2Jhc2UuaXh5dS5jb20iLCJpZCI6ImU4ZDkwNjY2LTE0ZjUtNTc5ZC01ODg4LTU0MjIxZGIyNzllZiIsInVzZXIiOiJ7XCJOYW1lXCI6XCLoi5foi5fniLhcIixcIklkXCI6XCJlOGQ5MDY2Ni0xNGY1LTU3OWQtNTg4OC01NDIyMWRiMjc5ZWZcIixcIkxpbmtzXCI6bnVsbCxcIlVzZXJUeXBlXCI6MX0iLCJuYmYiOjE2MDcxNjQ5NjEsImV4cCI6MTYwNzI1MTM2MSwiaWF0IjoxNjA3MTY0OTYxfQ.Z047rCWIELh9aYiFybJQzqp0yu0i0-UP8_hhP_MnjSc"
         },
         module:{
             app:"System",
             module:"Henq"
         },
         buttons:[             
             {text:"View",icon:"md-eye"},
             {text:"Add",icon:"md-add"},
             {text:"Edit",icon:"md-create"},
             {text:"Remove",icon:"ios-trash"},
         ]

     }
   },
   async asyncData(context){
       if(process.server){
           
       console.log("server",context)
       }else{
           console.warn(process,"process")
       }
   },
   mounted(){
       this.$options.__source = __filename
   },
   components: {
   },
   methods: {
       onClickoutside(){
        //    alert(123)
       }
   }
 }
</script>

<style lang="less">

 
</style>
